package com.Entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Topiccomment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "topiccomment", catalog = "monitor")
public class Topiccomment implements java.io.Serializable {

	// Fields

	private long commentId;
	private long originalTopicId;
	private Integer commentAuthorId;
	private Date commentTime;
	private String commentText;
	private String commentPicture;
	
	private Integer floorNum;
	
	//回复跟帖增加的属性
	private Integer isReplyComment;
	private String originalCommentorName;
	private Date originalReplyTime;
	private long originalCommentId;
	private String originalCommentText;

	// Constructors

	/** default constructor */
	public Topiccomment() {
	}

	/** minimal constructor */
	public Topiccomment(long commentId) {
		this.commentId = commentId;
	}

	/** full constructor */
	public Topiccomment(long commentId, long originalTopicId,
			Integer commentAuthorId, Date commentTime, String commentText,
			String commentPicture,Integer isReplyComment,String originalCommentorName,
			Date originalReplyTime,long originalCommentId,String originalCommentText,Integer floorNum) {
		this.commentId = commentId;
		this.originalTopicId = originalTopicId;
		this.commentAuthorId = commentAuthorId;
		this.commentTime = commentTime;
		this.commentText = commentText;
		this.commentPicture = commentPicture;
		
		this.floorNum=floorNum;
		
		this.isReplyComment=isReplyComment;
		this.originalCommentorName=originalCommentorName;
		this.originalReplyTime=originalReplyTime;
		this.originalCommentId=originalCommentId;
		this.originalCommentText=originalCommentText;
	}

	// Property accessors
	@Id
	@Column(name = "commentId", unique = true, nullable = false)
	public long getCommentId() {
		return this.commentId;
	}

	public void setCommentId(long commentId) {
		this.commentId = commentId;
	}

	@Column(name = "originalTopicId")
	public long getOriginalTopicId() {
		return this.originalTopicId;
	}

	public void setOriginalTopicId(long originalTopicId) {
		this.originalTopicId = originalTopicId;
	}

	@Column(name = "commentAuthorId")
	public Integer getCommentAuthorId() {
		return this.commentAuthorId;
	}

	public void setCommentAuthorId(Integer commentAuthorId) {
		this.commentAuthorId = commentAuthorId;
	}

	@Column(name = "commentTime", length = 19)
	public Date getCommentTime() {
		return this.commentTime;
	}

	public void setCommentTime(Date commentTime) {
		this.commentTime = commentTime;
	}

	@Column(name = "commentText" , length = 19000)
	public String getCommentText() {
		return this.commentText;
	}

	public void setCommentText(String commentText) {
		this.commentText = commentText;
	}

	@Column(name = "commentPicture")
	public String getCommentPicture() {
		return this.commentPicture;
	}

	public void setCommentPicture(String commentPicture) {
		this.commentPicture = commentPicture;
	}

	/**
	 * 新增属性
	 * @return
	 */
	@Column(name = "isReplyComment")
	public Integer getIsReplyComment() {
		return this.isReplyComment;
	}

	public void setIsReplyComment(Integer isReplyComment) {
		this.isReplyComment = isReplyComment;
	}
	
	@Column(name = "originalCommentorName", length = 19)
	public String getOriginalCommentorName() {
		return this.originalCommentorName;
	}

	public void setOriginalCommentorName(String originalCommentorName) {
		this.originalCommentorName = originalCommentorName;
	}
	
	@Column(name = "originalCommentId")
	public long getOriginalCommentId() {
		return this.originalCommentId;
	}

	public void setOriginalCommentId(long originalCommentId) {
		this.originalCommentId= originalCommentId;
	}
	
	@Column(name = "originalReplyTime", length = 19)
	public Date getOriginalReplyTime() {
		return this.originalReplyTime;
	}

	public void setOriginalReplyTime(Date originalReplyTime) {
		this.originalReplyTime = originalReplyTime;
	}
	
	@Column(name = "originalCommentText" , length = 2000)
	public String getOriginalCommentText() {
		return this.originalCommentText;
	}

	public void setOriginalCommentText(String originalCommentText) {
		this.originalCommentText = originalCommentText;
	}
	@Column(name = "floorNum" , length = 50)
	public Integer getFloorNum() {
		return floorNum;
	}

	public void setFloorNum(Integer floorNum) {
		this.floorNum = floorNum;
	}
}